<!DOCTYPE html>
<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>商品信息</h2>
<div th:each="item:${cart.items}">
    商品标题: <span th:text="${item.title}"></span></br>
    价格: <span th:text="${item.price}"></span></br>
    数量: <span th:text="${item.count}"></span></br>
    图片: <span><img width="20%" th:src="${item.image}"></span></br>
    规格: <span th:text="${item.skuAttr}"/> </br>
</div>
<div>
    商品总价：<span th:text="${cart.totalAmount}"></span></br>
    商品数量：<span th:text="${cart.countNum}"></span>
</div>
</body>
</html>